<?php
require_once("database.php");
$id = isset($_POST['id'])?$_POST['id']:1;
$sql = "SELECT * FROM gps_record WHERE id={$id}";
$long_lat = query($db,$sql);
echo json_encode($long_lat[0]);
